import React, { Component , PureComponent } from 'react';


export default class Person extends PureComponent {
    componentWillReceiveProps(newProps){
        console.log('是我要re-render了');
    }
    render() {
        console.log("cccc");
        const {name,age} = this.props.detail;
        return (
            <div>
            <span>姓名:</span>
            <span>{name}</span>
            <span> age:</span>
            <span>{age}</span>
            </div>
        )
    }
}